/*
 * @Author: qin
 * @Date:   2018-08-28
 * +----------------------------------------------------------------------
 * | admin [ 后台管理系统公共配置信息 ]
 * | 导航菜单模板
 * +----------------------------------------------------------------------
 */
layui.define(function (exports) {
    var roleNav = {
        html: '<ul id="nav">' +
        '    {{# layui.each(d.list, function(index, item){}}' +
        '        <li>' +
        '        {{# if(item.children.length !== 0){}}' +
        '            <a href="javascript:;" data-id="{{item.id}}">' +
        // '               <i class="iconfont">&#xe6b8;</i>' +
        '               <cite>{{item.title}}</cite>' +
        '               <i class="iconfont nav_right">&#xe697;</i>' +
        '            </a>\n' +
        '            <ul class="sub-menu">\n' +
        '           {{# layui.each(item.children, function(index, item){}}' +
        '               <li>\n' +
        '                   <a _href="{{item.link}}" data-id="{{item.id}}" data-pid="{{item.parentId}}">' +
        '                       <i class="iconfont">&#xe6a7;</i>' +
        '                       <cite>{{item.title}}</cite>' +
        '                   </a>' +
        '               </li>' +
        '           {{#});}}' +
        '            </ul>' +
        '        {{#}}}' +
        '        {{# if(item.children.length == 0){}}' +
        '            <a _href="{{item.link}}" data-id="{{item.id}}" data-pid="{{item.parentId}}">' +
        // '               <i class="iconfont">&#xe6b8;</i>' +
        '               <cite>{{item.title}}</cite>' +
        // '               <i class="iconfont nav_right">&#xe697;</i>' +
        '            </a>' +
        '        {{#}}}' +
        '        </li>' +
        '    {{#});}}' +
        '</ul>'
    };
    exports('roleNav', roleNav);
});
